package com.ljw.hmall.item.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ljw.hmall.dto.PageDTO;
import com.ljw.hmall.item.pojo.Item;

public interface IItemService extends IService<Item> {
    PageDTO<Item> selectPages(Integer page, Integer size);

    Item selectOne(Long id);

    void insertOne(Item item);

    void updateStatus(Long id, Integer status);

    void updateStock(Long itemId,Integer num);

    void addStock(Long itemId,Integer num);
}
